package com.hee.erp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum AuditStatusEnum {

    DRAFT(-1, "未提交"),
    AUDITING(0,"审批中"),
    PASS(1,"已通过"),
    REJECT(2,"已驳回");



    @EnumValue//标记数据库存的值是value
    @JsonValue//标记响应json值
    private final Integer value;
    private final String name;

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    AuditStatusEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
